package org.springblade.pm.service.impl;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.pm.mapper.OverViewMapper;
import org.springblade.pm.service.IOverViewService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@AllArgsConstructor
public class OverViewServiceImpl extends BaseServiceImpl<OverViewMapper, BaseEntity> implements IOverViewService{

	OverViewMapper overViewMapper;
	@Override
	public Map<String, Object> getHumanTaskTime(String projectCode) {
		return overViewMapper.getHumanTaskTime(projectCode);
	}

	@Override
	public String getUserFreeRank(Map<String, Object> map) {
		return overViewMapper.getUserFreeRank( map );
	}

	@Override
	public List<String> getUserByProject(String projectCode) {
		return overViewMapper.getUserByProject(projectCode);
	}

	@Override
	public List<Map<String,String>> getActiveList(Integer projectId) {
		return overViewMapper.getActiveList(projectId);
	}

}
